<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>华富</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../../css/swiper.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
</head>

<style>
  .aui-bar.aui-bar-light.share_nav{
    background:#fff;
    padding-top:2.5rem;
    position: fixed;
    margin-top: 0 !important;
  }
  .share_nav .share_nav_title{
    height: 4.4rem;
    line-height: 4.4rem;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    font-size:1.6rem;
    color:#000;
  }
  .share_nav .share_nav_left{
    top: 2.5rem;
    left: 1.3rem;
    position: absolute;
    z-index:10;
  }
  .share_nav .share_nav_right{
    top: 2.5rem;
    right: 1.3rem;
    position: absolute;
    z-index:10;
  }
  .share_nav .share_nav_right span{
    position: absolute;
    top:0.8rem;
    right:0;
    width:1.2rem;
    height:1.2rem;
    line-height: 1.2rem;
    color:#fff;
    background:#ed6a20;
    font-size:1rem;
    border-radius: 100%;
  }
  .share_nav img{
    height:1.7rem;
    margin-top:1.35rem;
  }

  .spacing10 {
    width: 100%;
    height: 1rem;
    background: #f5f5f5;
  }


  .aui-list .aui-list-item-title{font-size: 1.4rem; line-height: 2.4rem; padding: 0.8rem 0; height: auto; color: #666;}
  .aui-list .aui-list-item-title b{display: inline-block; font-weight: normal; color: #333; margin-right: 1.5rem; min-width: 7rem;}
  .aui-list{background: #fff;}
  .aui-list .aui-list-item{padding-left: 1.3rem;}
  .aui-list.aui-list-in .aui-list-item{background-position: 1.3rem bottom;}
  .aui-list .aui-list-item-inner{padding-right: 1.3rem;}
  .famousContent>p{background: #fff; padding: 0.8rem 1.3rem; font-size: 1.3rem; color: #666;}
  .famousLink {
      font-size: 1.3rem;
      color: #666;
      padding: 0.8rem 1.3rem;
  }

  .famousLink a {
      color: #ed6a20;
  }

</style>
<body>
<div id="app">
  <header class="aui-bar aui-bar-nav aui-bar-light share_nav">
    <a class="aui-pull-left share_nav_left" onclick="close_win()">
      <img src="../../image/share/share_index_nav4.png" alt="">
    </a>
    <div class="aui-title share_nav_title">企业信息详情</div>
    <a class="aui-pull-right share_nav_right">
      <img src="../../image/share/share_index_nav3.png" alt="">
      <span>5</span>
    </a>
  </header>
  <!--  / warpper  -->
  <div class="warpper pad69 aui-refresh-content">

    <div class="famBanner">
      <img :src=msg.pic2 alt="">
    </div>
    <div class="aui-content aui-margin-b-15">
      <ul class="aui-list aui-list-in">
          <li class="aui-list-item">
              <div class="aui-list-item-inner">
                  <div class="aui-list-item-title"><b>人物姓名</b>{{msg.name}}</div>
              </div>
          </li>
          <li class="aui-list-item">
              <div class="aui-list-item-inner">
                  <div class="aui-list-item-title"><b>所在地区</b>{{msg.place}}</div>
              </div>
          </li>
          <li class="aui-list-item">
              <div class="aui-list-item-inner">
                  <div class="aui-list-item-title"><b>联系方式</b>{{msg.phone}}</div>
              </div>
          </li>
      </ul>
  </div>
    <!-- <div class="spacing10"></div> -->

  <div class="famousContent" v-html="msg.content">
    {{msg.content}}
  </div>

  <div class="famousLink">
    链接到：<a>{{msg.link}}</a>
  </div>



  </div>
  <!--  / warpper  -->
</div>
</body>
</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/swiper.min.js"></script>
<script type="text/javascript" src="../../script/utils.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script type="text/javascript" src="../../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../../script/aui-toast.js"></script>
<script type="text/javascript">

  apiready = function(){
    setRefresh()
    var toast = new auiToast({})
    var vue = new Vue({
      el:'#app',
      data:{
        msg:{}
      },
      mounted:function(){
        this.detailMsg()
      },
      created:function(){

      },
      methods:{
        //详细信息
        detailMsg:function(){
          var _this = this
          var data={
            id:api.pageParam.id
          }
          api.ajax({
              url: window.hurl.companyinner,
              method: 'post',
              data: {
                  values: data
              }
          },function(ret, err){
            console.log( JSON.stringify( ret ) );
              if (ret) {
                if(ret.status == 1){
                   _this.msg = ret.data
                }else{
                  toast.fail({
                    title:ret.into,
                    duration:1000
                  })
                }

              } else {
                toast.fail({
                  title:ret.into,
                  duration:1000
                })
              }
          });

        }
      }
    })
  }

  //刷新
  function setRefresh(){
      var pullRefresh = new auiPullToRefresh({
          container: document.querySelector('.aui-refresh-content'),
          triggerDistance: 100
      }, function(ret) {

          if (ret.status == "success") {
              setTimeout(function() {
                  pullRefresh.cancelLoading(); //刷新成功后调用此方法隐藏
              }, 1500)
          }
      })
  }

  function close_win(){
    api.closeWin({});
  }

  function goShareTixian(){
    api.openWin({
        name: 'shareTixian',
        url: './share_tixian.html',
        pageParam: {
            test:''
        }
    });
  }

  function goSharePeople(){
    api.openWin({
        name: 'sharePeople',
        url: './share_people.html',
        pageParam: {
            test:''
        }
    });
  }
  function goShareShop(){
    api.openWin({
        name: 'shareShop',
        url: './share_shop.html',
        pageParam: {
            test:''
        }
    });
  }

  function goShareCommission(){
    api.openWin({
        name: 'shareCommission',
        url: './share_commision.html',
        pageParam: {
            test:''
        }
    });
  }


</script>
